<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script> 
    var a = 100;
    function fn(min,max){
        console.log("a" ,a);
        console.log("this", this);
    }
    function fn2(){
        console.log("this", this);
        console.log("a", a);
        f1();
        var a = 200;
    }
    var obj = {
        a:999,
        f1,
    }

    window.f2.f1(obj)
    </script>
</body>
</html>